package service.impl;

import dao.UserDao;
import dao.impl.UserDaoImpl;
import entity.User;
import service.UserService;

import java.sql.ResultSet;

public class UserServiceImpl implements UserService {
    UserDao userDao = new UserDaoImpl();
    @Override
    public int insertUser(User user) {
        return userDao.insertUser(user);
    }

    @Override
    public int selectUNo(String uno) {
        return userDao.selectUNo(uno);
    }

    @Override
    public ResultSet selectUser(int uid) {
        return userDao.selectUser(uid);
    }

    @Override
    public ResultSet selectUser(String uno, String pwd) {
        return userDao.selectUser(uno,pwd);
    }
}
